global.team_member_current_id = ds_list_find_value(global.team, global.team_member_current);
if ((ds_list_size(global.team) > 0) and (global.cutscene == false) and (global.dialog == false))
{
if (global.team_member_current == -1) && (instance_exists(ds_list_find_value(global.team,0)))
{
global.team_member_current = 0;
}
else
{
if (keyboard_check_pressed(global.button[5]))
{
if global.team_member_current == (ds_list_size(global.team)-1)
{
global.team_member_current = 0;
}
else
{
global.team_member_current += 1;
}
view_hspeed[0] = (view_object[0]).character_walksp + (view_object[0]).character_sprintsp;
}
if (keyboard_check_pressed(global.button[4]))
{
if (global.team_member_current == 0)
{
global.team_member_current = (ds_list_size(global.team)-1);
}
else
{
global.team_member_current -= 1;
}
view_hspeed[0] = (view_object[0]).character_walksp + (view_object[0]).character_sprintsp;
}
}
}
